package com.pacai.homework;

/**
 * @author pacai
 * @version 1.0
 */
public class HomeWork09 {

}

class Music{
    private String name;
    private double times;
    public Music(String name, double times) {
        this.name = name;
        this.times = times;
    }

    public void play(){
        System.out.println(name + "正在播放" + "总共有" + times);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getTimes() {
        return times;
    }

    public void setTimes(double times) {
        this.times = times;
    }
}

